import {request} from "@/network/request";

export function getAllTemplate(){
    return request({
        url: '/admin/template/list',
        method: 'get',
    })
}
export function deleteBanner(id){
    return request({
        url: '/admin/template/banner/delete/'+id,
        method: 'get',
    })
}
export function addBanner(data){
    return request({
        url: '/admin/template/banner/add',
        method: 'post',
        data:data,
    })
}
export function deleteNotice(id){
    return request({
        url: '/admin/template/notice/delete/'+id,
        method: 'get',
    })
}
export function addNotice(data){
    return request({
        url: '/admin/template/notice/add',
        method: 'post',
        data:data,
    })
}
export function updateNotice(data){
    return request({
        url: '/admin/template/notice/update',
        method: 'post',
        data:data,
    })
}